<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>KSYCameraRecorderDelegate Protocol Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">KSYMediaEditorKit </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">Kingsoft</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	

	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/cameraRecorder:didFinishRecord:videoURL:">- cameraRecorder:didFinishRecord:videoURL:</option>
		
		<option value="//api/name/cameraRecorder:didReachMaxDurationLimit:">- cameraRecorder:didReachMaxDurationLimit:</option>
		
		<option value="//api/name/cameraRecorder:lastRecordLength:totalLength:">- cameraRecorder:lastRecordLength:totalLength:</option>
		
		<option value="//api/name/cameraRecorder:startRecord:">- cameraRecorder:startRecord:</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">KSYCameraRecorderDelegate Protocol Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Conforms to</th>
	<td>NSObject</td>
</tr><tr>
	<th>Declared in</th>
	<td>KSYCameraRecorder.h</td>
</tr>
						</tbody></table></div>
					

                    

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/cameraRecorder:startRecord:" title="cameraRecorder:startRecord:"></a>
	<h3 class="method-title"><code><a href="#//api/name/cameraRecorder:startRecord:">&ndash;&nbsp;cameraRecorder:startRecord:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>开始录制</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)cameraRecorder:(KSYCameraRecorder *)<em>recorder</em> startRecord:(OSStatus)<em>status</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>recorder</code></th>
						<td><p>instance of <a href="../Classes/KSYCameraRecorder.html">KSYCameraRecorder</a></p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>status</code></th>
						<td><p>status of start record, noErr indicate start success,otherwise fail</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYCameraRecorder.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/cameraRecorder:didFinishRecord:videoURL:" title="cameraRecorder:didFinishRecord:videoURL:"></a>
	<h3 class="method-title"><code><a href="#//api/name/cameraRecorder:didFinishRecord:videoURL:">&ndash;&nbsp;cameraRecorder:didFinishRecord:videoURL:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>  完成一次录制回调，超过最大录制长度而停止录制时不会有该回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)cameraRecorder:(KSYCameraRecorder *)<em>recorder</em> didFinishRecord:(NSTimeInterval)<em>length</em> videoURL:(NSURL *)<em>url</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>recorder</code></th>
						<td><p>相应的实例</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>length</code></th>
						<td><p>已经录制的视频总长度</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYCameraRecorder.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/cameraRecorder:lastRecordLength:totalLength:" title="cameraRecorder:lastRecordLength:totalLength:"></a>
	<h3 class="method-title"><code><a href="#//api/name/cameraRecorder:lastRecordLength:totalLength:">&ndash;&nbsp;cameraRecorder:lastRecordLength:totalLength:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>更新录制的进度
1.stopRecord之后不再回调
2.达到maxRecDuration之后不再回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)cameraRecorder:(KSYCameraRecorder *)<em>recorder</em> lastRecordLength:(NSTimeInterval)<em>lastRecordLength</em> totalLength:(NSTimeInterval)<em>totalLength</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>recorder</code></th>
						<td><p>相应的实例</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>lastRecordLength</code></th>
						<td><p>最新录制的一条视频已录制的长度</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>totalLength</code></th>
						<td><p>录制视频集合的总长度</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<div class="warning"><p><strong>Warning:</strong> 使用者应该尽可能快的返回该函数</p></div>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYCameraRecorder.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/cameraRecorder:didReachMaxDurationLimit:" title="cameraRecorder:didReachMaxDurationLimit:"></a>
	<h3 class="method-title"><code><a href="#//api/name/cameraRecorder:didReachMaxDurationLimit:">&ndash;&nbsp;cameraRecorder:didReachMaxDurationLimit:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>达到最大录制长度限制的回调,只有设置了maxRecDuration之后才有可能收到该回调</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)cameraRecorder:(KSYCameraRecorder *)<em>recorder</em> didReachMaxDurationLimit:(NSTimeInterval)<em>maxRecDuration</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>recorder</code></th>
						<td><p>相应的实例</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>maxRecDuration</code></th>
						<td><p>最大长度</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYCameraRecorder.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2018 Kingsoft. All rights reserved. Updated: 2018-02-09</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>